package com.cndw.kungfu.vo;

import java.util.HashMap;

import com.cndw.kungfu.config.ConstantsRadio;
import com.cndw.kungfu.model.Context;

/**
 * 玩家属性改变通知,返回当前的值
 * @author fantadust
 * @date 2011-5-6 下午08:43:14
 */
public class PlayerChangeVO extends HashMap<String, Object> {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8370448745677358143L;

	public static final String RADIO_NAME 		= ConstantsRadio.playerChange;

	public static final String PLAYER_MAIN		= "main";
	
	/**
	 * 角色等级
	 */
	public static final String PLAYER_LEVEL 	= "level"; 
	/**
	 * 角色金币
	 */
	public static final String PLAYER_GOLD 		= "gold";	
	public static final String PLAYER_GOLDBING 		= "goldBing";	
	public static final String PLAYER_EXP 		= "exp";
	public static final String PLAYER_ASSET		= "asset";
	
	public static final String PLAYER_HP 		= "hp";
	public static final String PLAYER_MAX_HP 	= "maxHp";
	public static final String PLAYER_MP 		= "mp";
	public static final String PLAYER_MAX_MP 	= "maxMp";
	
	public static final String PLAYER_POWER		= "power";
	public static final String PLAYER_PHYSICAL	= "physical";
	public static final String PLAYER_AGILE		= "agile";
	public static final String PLAYER_WIT		= "wit";
	public static final String PLAYRE_ATTACK	= "attack"; 
	public static final String PLAYER_STATE     = "state";
	public static final String PLAYER_SCORE 	= "score";
	
	/**
	 * 门派资源获得
	 */
	public static final String MartialMetal = "martialMetal";
	/**
	 * 有新的技能
	 */
	public static final String SkillNew = "skillNew";
	/**
	 * 背包个数
	 */
	public static final String boxsGirds = "boxsGirds";
	/**
	 * 仓库个数
	 */
	public static final String holdGrids = "holdGrids";
	/**
	 * 當前的額度
	 */
	public static final String payCash = "payCash";
	/**
	 * 升級需要的額度
	 */
	public static final String payCashUpgrade = "payCashUpgrade";
	/**
	 * 助阵营个数
	 */
	public static final String campMax = "campMax";
	/**
	 * 徒弟最大个数
	 */
	public static final String discipleMax = "discipleMax";
	
	public void broadcast(Long... playerId){		
		Context.getTcpServer().broadcast(this, RADIO_NAME, playerId);		
	}
	
}
